<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>欢迎来到龙岗区政府主办公益性职介所</title>
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
	</head>

	<script type="text/javascript" src="/js/prototype-1.5.1.2.js"></script>
	<script language="javascript">
    <bean:write name="com_struts_web_homepage_HomePageForm" property="printStaSql" filter="false"/>
<bean:write name="com_struts_web_homepage_HomePageForm" property="printVacaSql" filter="false"/>
<bean:write name="com_struts_web_homepage_HomePageForm" property="printWorkplaceSql" filter="false"/>
	//定义一个变量用于存放XMLHttpRequest对象
	var xmlHttp; 
	
	//该函数用于创建一个XMLHttpRequest对象
	function createXMLHttpRequest() {
		if (window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		else if (window.XMLHttpRequest) {
			xmlHttp = new XMLHttpRequest();
			xmlHttp.setRequestHeader("Content-Type","text/html;charset=UTF-8");
		}
	}

	
	//这是响应列表的onChange事件的处理方法
	function updateSelect(){
	
		var selected = document.all.station.value;//
		//创建一个XMLHttpRequest对象
		createXMLHttpRequest();
		//将状态触发器绑定到一个函数
		xmlHttp.onreadystatechange = processor;
		//通过GET方法向指定的URL建立服务器的调用
		xmlHttp.open("GET", "CreateXML?selected="+selected);
		//发送请求
		xmlHttp.send(null);
	}
	
	//处理从服务器返回的XML文档并更新列表
	function processor() {
		//定义一个变量用于存放从服务器返回的响应结果
		var result;
		if(xmlHttp.readyState == 4) { //如果响应完成
		
			if(xmlHttp.status == 200) {//如果返回成功
				//取出服务器返回的XML文档的所有标签的子节点
				result = xmlHttp.responseXML.getElementsByTagName("substation");
				//先清除列表的现有内容
				while (document.all.subStation.options.length>0){
					document.all.subStation.removeChild(document.all.subStation.childNodes[0]);
				}
				//解析XML中的数据并更新
				for(var i=0;i<result.length;i++){
					var option = document.createElement("OPTION");
					option.text = result[i].childNodes[0].childNodes[0].nodeValue;//这就是取出值
					option.value = result[i].childNodes[1].childNodes[0].nodeValue;//这就是取出值
					
					document.all.subStation.options.add(option);//为岗位列表添加
				}
			}
		}
	}
	function doMethod(flag){
	if(flag==2){
	document.forms["svform"].method.value = "search";
	}
	}
	
	function dologin1(theform){
	   if(theform.loginName.value=="" || theform.loginPassword.value==""){
	   
	   
	     alert("对不起,用户名和密码不能为空!");
	     return false;
	   }
	}
	function dologin(theform){
	   if(theform.loginName.value=="" || theform.loginPassword.value==""){
	   
	   
	     alert("对不起,用户名和密码不能为空!");
	     return false;
	   }
	   if($F("inputnum")==""){
	   alert("验证码不能为空!");
	   return false;
	   }
	}
	
	function doclean(str){
	document.forms[str].loginPassword.value="";
	}
	
	function forget(){
	alert("   忘记密码?\n请联系工作人员!");
	}
	
</script>
	<body>
		<table width="1003" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<%@ include file="/jsp/top.jsp"%>
			<tr>
				<td align="center" valign="top" height="5">
					<table width="880" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<marquee direction="left" behavior="scroll" scrollamount="3">
									<font
										style="color: #F71212; font-size: 12pt; font-weight: 500;">
										<bean:write name="com_struts_web_homepage_HomePageForm"
											property="zouMaDeng" filter="false" /> </font>
								</marquee>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align="center" valign="top">
					<table width="880" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="257" align="center" valign="top">
								<table width="100%" border="0" cellpadding="0" cellspacing="0"
									class="left2">
									<tr>
										<td align="left" valign="top">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td colspan="3" valign="top">
														<img src="images/index_07.gif" width="257" height="27" />
													</td>
												</tr>
												<html:form action="/system/login.do?pal=userLogin"
													styleId="userform" method="post"
													onsubmit="return dologin1(this);" target="_blank">
													<tr>
														<td colspan="3" align="left" valign="top">
															<table width="100%" border="0" cellspacing="0"
																cellpadding="0">
																<tr>
																	<td class="name-text">
																		用户名：
																		<html:text property="loginName" styleClass="input" />
																	</td>
																	<td width="60" rowspan="2" align="center"
																		valign="middle">
																		<input type="image" src="images/index_11.gif"
																			width="42" height="42" onBlur="doclean('userform')" />
																</tr>
																<tr>
																	<td class="name-text">
																		&nbsp;密&nbsp;&nbsp;&nbsp;码：
																		<html:password property="loginPassword"
																			styleClass="input" />
																	</td>
																</tr>
															</table>

														</td>
													</tr>
												</html:form>
												<tr>
													<td width="50%" align="center" class="help">
														<a href="/com/struts/web/news/viewnews.do?ID=14759"
															target="_blank">求职帮助</a>
													</td>
													<td width="50%" align="left" class="forget">
														<a href="/system/user/getquestion.jsp" target="_blank">忘记密码</a>？
													</td>
												</tr>
												<tr>
													<td colspan="3" align="center">
														<table width="100%" border="0" cellspacing="6" cellpaddi
															ng="0">
															<tr>
																<td align="center">
																	<a href="/system/user/reglogin.jsp" target="_blank"><img
																			src="images/index_14.gif" width="89" height="22" />
																	</a>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>

									<tr>
										<td valign="top">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td colspan="3" valign="top">
														<img src="images/index_08.gif" width="257" height="27" />
													</td>
												</tr>
												<html:form action="/system/login.do?pal=corporLogin"
													styleId="corporform" method="post"
													onsubmit="return dologin(this);" target="_blank">
													<tr>
														<td colspan="3" align="left" valign="top">
															<table width="100%" border="0" cellspacing="0"
																cellpadding="0">
																<tr>
																	<td class="name-text">
																		用户名：
																		<html:text property="loginName" styleClass="input" />
																	</td>
																	<td width="60" rowspan="2" align="center"
																		valign="middle">
																		<input type="image" src="images/index_11.gif"
																			width="42" height="42" onBlur="doclean('corporform')" />
																	</td>
																</tr>
																<tr>
																	<td class="name-text">
																		&nbsp;密&nbsp;&nbsp;&nbsp;码：
																		<html:password property="loginPassword"
																			styleClass="input" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>

													<tr>
														<td width="49%" align="center" class="name-text">
															验证码：
															<html:text property="inputnum" styleClass="input2"
																size="15"></html:text>
														</td>
														<td width="25%" align="center">
															<img src="/Image" border="0" onClick="this.src=this.src"
																alt="看不清,请点击图片刷新!" />
														</td>
														<td width="26%" align="center" class="forget"
															onClick="forget()">
															<a href="#">忘记密码</a>？
														</td>
													</tr>
												</html:form>
												<tr>
													<td colspan="3" align="center">
														<table width="100%" border="0" cellspacing="6"
															cellpadding="0">
															<tr>
																<td align="center">
																	<a href="/system/corpor/corporbase.jsp" target="_blank">
																		<img src="images/index_16.gif" width="89" height="22" />
																	</a>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>


									<tr>
										<td valign="top">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">

												<tr>
													<td width="203" class="title">
														网站统计
													</td>
												</tr>



												<tr>
													<td>
														<ul>
                                                      &nbsp;&nbsp;总浏览次数：100
														</ul>
													</td>
												</tr>


											</table>
										</td>
									</tr>
									<tr>
										<td valign="top">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">

												<tr>
													<td width="203" class="title">
														职场攻略
													</td>
													<td width="54" align="right">
														<a target="_blank"
															href="/com/struts/web/news/viewnewsbykind_law.do?newsKind=1"><img
																src="images/index_24.gif" width="54" height="27" /> </a>
													</td>
												</tr>



												<tr>
													<td colspan="2">
														<ul>
															<logic:present name="strategylist">
																<logic:iterate id="strategylist" name="strategylist"
																	type="com.ibatis.po.system.TNews">
																	<li>
																		<a
																			href="/com/struts/web/news/viewnews.do?ID=${strategylist.id}"
																			target="_blank"> ${strategylist.title} </a>
																	</li>
																</logic:iterate>
															</logic:present>
														</ul>
													</td>
												</tr>


											</table>
										</td>
									</tr>


								</table>
							</td>
							<td width="97%" rowspan="3" valign="top">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td valign="top">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td align="left" valign="top">
														<table width="100%" border="0" cellpadding="0"
															cellspacing="0" class="middle4">
															<tr>
																<td width="403" class="title">
																	最新动态
																</td>
																<td width="54" align="right">
																	<a target="_blank"
																		href="/com/struts/web/news/viewnewsbykind_news.do?newsKind=0"><img
																			src="images/index_24.gif" width="54" height="27" />
																	</a>
																</td>
															</tr>
															<tr>
																<td colspan="2" align="left">
																	<ul>
																		<logic:present name="hopnewslist">
																			<logic:iterate id="hopnews" name="hopnewslist"
																				type="com.ibatis.po.system.TNews">
																				<li>
																					<a
																						href="/com/struts/web/news/viewnews.do?ID=${hopnews.id}"
																						target="_blank"> ${hopnews.title} </a>
																				</li>
																			</logic:iterate>
																		</logic:present>
																	</ul>
																</td>
															</tr>
														</table>
													</td>

												</tr>
												<html:form action="/com/struts/web/job/viewjob.do"
													method="get" styleId="svform" target="_blank"
													onsubmit="doMethod(2)">
													<html:hidden property="method" value="" />
													<tr>
														<td align="left" valign="top">
															<table width="100%" border="0" cellpadding="0"
																cellspacing="0" class="middle2">
																<tr>
																	<td align="left" valign="middle" class="tit1">
																		<table width="100%" border="0" cellspacing="3"
																			cellpadding="0">
																			<tr>
																				<td width="69" height="25" align="center"
																					class="name-text2">
																					职位搜索
																				</td>
																				<td width="122">
																					<span class="name-text"> <html:text
																							property="positionText" styleClass="input4"
																							size="20"></html:text> </span>
																				</td>
																				<td width="84">
																					<html:select property="workplace" styleClass="sel1">
																						<SCRIPT language=JavaScript>
			        for (var i = 0; i < (workplace.length); i++) {
			         document.write("<OPTION value='"+workplace[i]+"'");
			    document.write(">" + workplace[++i]+"</OPTION>");	
			  }
			</SCRIPT>
																					</html:select>
																				</td>
																				<!--  
																	<td width="86">
																		<span class="name-text"> <html:text
																				styleClass="input5" property="worktown"
																				style="background:url(/images/town.gif);" size="10"
																				onblur="if(this.value=='')this.style.backgroundImage='url(/images/town.gif)';"
																				onfocus="this.style.backgroundImage='url()';this.style.backgroundColor='#ffffff'"></html:text>
																		</span>
																	</td>
																	-->
																				<td width="77" align="left">
																					<input type="image" src="images/index_21.gif"
																						width="67" height="18" />
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td valign="top">
																		<table width="100%" border="0" cellpadding="0"
																			cellspacing="0">
																			<tr>
																				<td colspan="2" align="center" class="name-text3">
																					<label>
																						<html:radio property="searchType" value="0"></html:radio>
																						职位名称
																					</label>
																					<html:radio property="searchType" value="1"></html:radio>
																					公司名称
																					<html:radio property="searchType" value="2"></html:radio>
																					所有
																					<script type="text/javascript">
                      function foo(){
                      document.all.searchType[2].checked=true;
                      }
                      foo();
                      </script>
																				</td>
																			</tr>
																			<tr>
																				<td colspan="2" class="name-text4">
																					工作岗位：
																					<html:select property="station"
																						onchange="updateSelect()" styleClass="sel2">
																						<SCRIPT language="JavaScript">
			        for (var i = 0; i < (station.length); i++) {
			         document.write("<OPTION value='"+station[i]+"'");
			    document.write(">" + station[++i]+"</OPTION>");	
			  }
			</SCRIPT>
																					</html:select>
																					－
																					<html:select property="subStation"
																						styleClass="sel2">
																						<option value="">
																							不限
																						</option>
																					</html:select>
																				</td>
																			</tr>
																			<tr>
																				<td width="53%" class="name-text4">
																					行业类别：
																					<html:select property="vocation" styleClass="sel2">
																						<SCRIPT language=JavaScript>
			        for (var i = 0; i < (vocation.length); i++) {
			         document.write("<OPTION value='"+vocation[i]+"'");
			    document.write(">" + vocation[++i]+"</OPTION>");	
			  }
			</SCRIPT>
																					</html:select>
																				</td>
																				<td width="47%" class="name-text4">
																					发布日期：
																					<html:select property="issueTime" styleClass="sel1">
																						<option value="">
																							--发布时间不限--
																						</option>
																						<option value="1">
																							一天内
																						</option>
																						<option value="3">
																							三天内
																						</option>
																						<option value="7">
																							一周内
																						</option>
																						<option value="15">
																							半月内
																						</option>
																						<option value="30">
																							一个月内
																						</option>
																					</html:select>
																				</td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</html:form>
												<tr>
													<td align="left" valign="top">
														<table width="100%" border="0" cellpadding="0"
															cellspacing="0" class="middle1">
															<tr>
																<td width="403" class="title">
																	企业推荐
																</td>
																<td width="54" align="right">
																	<a target="_blank"
																		href="/com/struts/web/news/viewnewsbykind_corpor.do">
																		<img src="images/index_24.gif" width="54" height="27" />
																	</a>
																</td>
															</tr>
															<tr>
																<td colspan="2">
																	<ul>
																		<logic:present name="onlinecorporlist">
																			<logic:iterate id="onlinelist"
																				name="onlinecorporlist"
																				type="com.ibatis.po.corpor.TCorporation">
																				<li>
																					<a
																						href="/com/corpor/manage/hviewcorpor.do?corporId=${onlinelist.id}"
																						target="_blank"> ${onlinelist.corporationName}
																					</a>
																				</li>
																			</logic:iterate>
																		</logic:present>
																	</ul>
																</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr>
													<td height="207" align="left" valign="middle">
														<table width="100%" height="199" border="0"
															cellpadding="0" cellspacing="0" class="middle1">
															<tr>
																<td width="403" class="title">
																	现场招聘
																</td>
																<td width="54" align="right">
																	<a target="_blank"
																		href="/com/struts/web/news/viewnewsbykind_law.do?newsKind=5"><img
																			src="images/index_24.gif" width="54" height="27" />
																	</a>
																</td>
															</tr>
															<tr>
																<td colspan="2" valign="top">
																	<ul>
																		<logic:present name="onsiteCorporList">
																			<logic:iterate id="onsiteCorporList"
																				name="onsiteCorporList"
																				type="com.ibatis.po.system.TNews">
																				<li>
																					<a
																						href="/com/struts/web/news/viewnews.do?ID=${onsiteCorporList.id}"
																						target="_blank"> ${onsiteCorporList.title} </a>
																				</li>
																			</logic:iterate>
																		</logic:present>
																	</ul>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
										<td width="150" rowspan="4" align="right" valign="top">
											<table width="100%" border="0" cellpadding="0"
												cellspacing="0" class="right2">
												<tr>
													<td valign="top" class="right-title11" width="100%">
														求职之星
													</td>
												</tr>
												<tr>
													<td colspan="2" valign="top">
														<table width="100%" border="0" cellspacing="8"
															cellpadding="0">
															<logic:present name="qzzxlist">
																<logic:iterate id="qzzxlist" name="qzzxlist"
																	type="com.ibatis.po.user.TQzzx">
																	<tr>
																		<td align="left" valign="top">
																			<table width="100%" border="0" cellspacing="0"
																				cellpadding="0">
																				<!-- 
																				<tr>
																					<td align="center" valign="top">
																						<img src="/userpicture/${qzzxlist.imageURL}"
																							width="80" height="90" />
																					</td>
																				</tr>
																				 -->
																				<tr>
																					<td class="name-text">
																						姓名：${qzzxlist.name}
																					</td>
																				</tr>
																				<tr>
																					<td class="name-text">
																						性别：${qzzxlist.sex}
																					</td>
																				</tr>
																				<tr>
																					<td class="name-text">
																						${qzzxlist.schoolName}
																					</td>
																				</tr>
																				<tr>
																					<td align="center" valign="top">
																						<a
																							href="/com/struts/web/user/jlmanage/viewuser.do?ID=${qzzxlist.id}"
																							target="_blank"> <img
																								src="images/index_22.gif" width="84" height="21" />
																						</a>
																					</td>
																				</tr>
																			</table>
																		</td>
																	</tr>
																</logic:iterate>
															</logic:present>

														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td>

							</td>
						</tr>
						<tr>
							<td height="203" valign="top">
								<table width="100%" border="0" cellpadding="0" cellspacing="0"
									class="left1">
									<tr>
										<td width="203" class="title">
											政策法规
										</td>
										<td width="54">
											<a target="_blank"
												href="/com/struts/web/news/viewnewsbykind_law.do?newsKind=3"><img
													src="images/index_24.gif" width="54" height="27" /> </a>
										</td>
									</tr>
									<tr>
										<td colspan="2" align="left">
											<ul>
												<logic:present name="lawlist">
													<logic:iterate id="lawlist" name="lawlist"
														type="com.ibatis.po.system.TNews">
														<li>
															<a
																href="/com/struts/web/news/viewnews.do?ID=${lawlist.id}"
																target="_blank"> ${lawlist.title} </a>
														</li>
													</logic:iterate>
												</logic:present>
											</ul>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td rowspan="2" valign="top">
								<table width="100%" border="0" cellpadding="0" cellspacing="0"
									class="left1">
									<tr>
										<td width="203" class="title">
											传媒博览
										</td>
										<td width="54" align="right">
											<a target="_blank"
												href="/com/struts/web/news/viewnewsbykind_media.do?newsKind=2"><img
													src="images/index_24.gif" width="54" height="27" /> </a>
										</td>
									</tr>
									<tr>
										<td colspan="2">
											<ul>
												<logic:present name="medialist">
													<logic:iterate id="medialist" name="medialist"
														type="com.ibatis.po.system.TNews">
														<li>
															<a
																href="/com/struts/web/news/viewnews.do?ID=${medialist.id}"
																target="_blank"> ${medialist.title} </a>
														</li>
													</logic:iterate>
												</logic:present>
											</ul>
										</td>
									</tr>
								</table>
							</td>
							<td valign="top" class="pic2">
								<img src="images/index_26.gif" width="614" height="81" />
							</td>
						</tr>
						<tr>
							<td valign="top">
								<table width="100%" border="0" cellpadding="0" cellspacing="0"
									class="tableBG">
									<tr>
										<td class="title">
											友情链接
										</td>
									</tr>
									<tr>
										<td align="left" valign="top">
											<table width="100%" border="0" cellspacing="4"
												cellpadding="0">
												<tr>
													<td align="center" valign="top">
														<img src="images/banner01.gif" width="88" height="31" />
													</td>
													<td align="center" valign="top">
														<img src="images/banner02.gif" width="88" height="31" />
													</td>
													<td align="center" valign="top">
														<img src="images/banner03.gif" width="88" height="31" />
													</td>
													<td align="center" valign="top">
														<img src="images/banner04.gif" width="88" height="31" />
													</td>
													<td align="center" valign="top">
														<img src="images/banner05.gif" width="88" height="31" />
													</td>
													<td align="center" valign="top">
														<img src="images/banner06.gif" width="88" height="31" />
													</td>
												</tr>
												<tr>
													<td colspan="6" valign="top" class="friendFontList">
														<ul2>
														<li>
															<a href="http://www.51job.com/" target="_blank">前程无忧</a>
														</li>
														<li>
															<a href="http://www.020job.com" target="_blank">广州人才网</a>
														</li>
														<li>
															<a href="http://www.stzp.cn" target="_blank">汕头招聘网</a>
														</li>
														<li>
															<a href="http://www.cfw.cn" target="_blank">中国服装人才网</a>
														</li>
														<li>
															<a href="http://www.0577job.com" target="_blank">温州人才招聘网</a>
														</li>
														<li>
															<a href="http://www.jobeast.com/" target="_blank">中国外语人才网</a>
														</li>
														<li>
															<a href="http://www.foodhr.cn/" target="_blank">食品人才招聘网</a>
														</li>
														<li>
															<a href="http://www.qzzn.com/" target="_blank">求职指南网</a>
														</li>
														<li>
															<a href="http://www.mnrc.com.cn/" target="_blank">闽南人才网</a>
														</li>
														<li>
															<a href="http://www.szhr.com.cn/" target="_blank">深圳人才网</a>
														</li>
														<li>
															<a href="http://www.hunt007.com/" target="_blank">南方人才网</a>
														</li>
														<li>
															<a href="http://www.gao8dou.com/" target="_blank">人才招聘搜索</a>
														</li>
														<li>
															<a href="http://www.jobg.cn/" target="_blank">游戏英才网</a>
														</li>
														<li>
															<a href="http://www.sz5.cn/" target="_blank">深圳网</a>
														</li>
														<li>
															<a href="http://www.hr568.com/" target="_blank">中国人才直通车</a>
														</li>
														<li>
															<a href="http://www.szstudy.cn/" target="_blank">神州学习网</a>
														</li>
														<li>
															<a href="http://www.xx10000.com/" target="_blank">便民服务信息网</a>
														</li>
														<li>
															<a href="http://www.85110.com/" target="_blank">中国成功网</a>
														</li>
														<li>
															<a href="http://www.ccc360.com/" target="_blank">城市折扣在线</a>
														</li>
														<li>
															<a href="http://www.91px.com/" target="_blank">易创培训网</a>
														</li>
														</ul2>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<%@ include file="/jsp/bottom.jsp"%>
		</table>
	</body>
</html>
